-- GENERATED SPELL FOR [Prince Sandoval] --


function spell0_14688(pUnit, Event) --@Ember Shower,Self--
pUnit:FullCastSpellOnTarget(61145,pUnit)
pUnit:RegisterEvent('Sorts_14688', 0, 1)
end

function spell1_14688(pUnit, Event) --@Engulfing Strike,n/a--
pUnit:FullCastSpellOnTarget(61162,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14688', 9000, 1)
end

function spell2_14688(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(61163,pUnit)
pUnit:RegisterEvent('Sorts_14688', 582, 1)
end

function spell3_14688(pUnit, Event) --@Fire Shield,Self--
pUnit:FullCastSpellOnTarget(61144,pUnit)
pUnit:RegisterEvent('Sorts_14688', 1000, 1)
end

function Sorts_14688(pUnit, Event)
local choix_sorts_14688 = math.random(0, 3)
if choix_sorts_14688 == 0 then
pUnit:RegisterEvent('spell0_14688', 1, 1)
end
if choix_sorts_14688 == 1 then
pUnit:RegisterEvent('spell1_14688', 1, 1)
end
if choix_sorts_14688 == 2 then
pUnit:RegisterEvent('spell2_14688', 1, 1)
end
if choix_sorts_14688 == 3 then
pUnit:RegisterEvent('spell3_14688', 1, 1)
end
end

function mob14688_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14688', math.random(1500, 3000), 1)
end

function mob14688_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14688_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14688_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14688, 1, 'mob14688_Action')
RegisterUnitEvent(14688, 2, 'mob14688_Leave')
RegisterUnitEvent(14688, 3, 'mob14688_Kill')
RegisterUnitEvent(14688, 4, 'mob14688_Die')
